﻿Imports Control_Vuelos_BE
Imports Control_Vuelos_ADO

Public Class V_ReservaBL
    ReadOnly _ReservaADO As New V_ReservaADO()

    Public Function CargarPrioridad(ByVal sTipo As String) As String
        Return _ReservaADO.CargarPrioridad(sTipo)
    End Function

    Public Function CrearReserva(ByVal rBE As V_ReservaBE) As Boolean
        Return _ReservaADO.CrearReserva(rBE)
    End Function

    Public Function EliminarReserva(ByVal sCodr As Integer) As Boolean
        Return _ReservaADO.EliminarReserva(sCodr)
    End Function

    Public Function ListarReserva(ByVal sFiltro As String) As DataTable
        Return _ReservaADO.ListarReserva(sFiltro)
    End Function

    Public Function ListarReservas(ByVal p_tippasajero As String, ByVal p_estadoreserva As String, ByVal p_lugarreserva As String) As DataTable
        Return _ReservaADO.ListarReservas(p_tippasajero, p_estadoreserva, p_lugarreserva)
    End Function

    Public Function ListarReservasBuscar() As DataTable
        Return _ReservaADO.ListarReservasBuscar()
    End Function

    Public Function ListarReservasVarios(ByVal p_tippasajero As String, ByVal p_estadoreserva As String, ByVal p_lugarreserva As String) As DataTable
        Return _ReservaADO.ListarReservasVarios(p_tippasajero, p_estadoreserva, p_lugarreserva)
    End Function

    Public Function pb_getReserva() As DataTable
        Return _ReservaADO.pb_getReserva()
    End Function

    Public Function ModificarReserva(ByVal rBE As V_ReservaBE) As Boolean
        Return _ReservaADO.ModificarReserva(rBE)
    End Function

    Public Function RecuperarReservaPorDNI(ByVal sDnir As String, ByVal sFchViaje As String) As Integer
        Return _ReservaADO.RecuperarReservaPorDNI(sDnir, sFchViaje)
    End Function

    Public Function TraerReserva(ByVal sCodr As Integer) As V_ReservaBE
        Return _ReservaADO.TraerReserva(sCodr)
    End Function
End Class
